package com.sk.waste.app.activitys

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import com.lc.smc.lib.annotations.LCBindView
import com.sk.waste.app.R
import com.sk.waste.app.bases.BaseActiivity
import com.sk.waste.app.enums.IdenEmum
import com.sk.waste.app.utils.PermissionUtil

/**
 *  @time 2025/4/25  17:11
 *  @desc 选择身份
 */
class IdentityActivity : BaseActiivity() {

    @LCBindView(R.id.ac_identity_user)
    private val bttUser: Button? = null

    @LCBindView(R.id.ac_identity_Merchant)
    private val bttMerchant: Button? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        setContentView(R.layout.activity_identity)
        super.onCreate(savedInstanceState)
        setBack()
        setTitleView("选择用户类型")

        bttUser!!.setOnClickListener {
            val intent = Intent(mContext, RegisterActivity::class.java)
            intent.putExtra("extral_user", IdenEmum.TYPE_USER.identity)
            startActivity(intent)
            finish()
        }

        bttMerchant!!.setOnClickListener {
            val intent = Intent(mContext, RegisterActivity::class.java)
            intent.putExtra("extral_user", IdenEmum.TYPE_MERCHANT.identity)
            startActivity(intent)
            finish()
        }
    }


}